/* Reset and base */
html {
  font-size: 16px;
}

* {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #001f4d;
  color: white;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #002b80;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffc107;
}

.logo-img {
  width: 40px;
  height: auto;
}

/* Navbar */
nav {
  display: flex;
  gap: 1rem;
}

.menu-toggle {
  color: white;
  display: none;
  background: none;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    display: none;
    margin-top: 10px;
    text-align: center;
    width: 100%;
  }

  nav.hidden {
    display: none;
  }

  nav:not(.hidden) {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  body {
    font-size: 14px;
  }

  h1,
  h2,
  h3 {
    font-size: 1.3rem;
  }
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

nav a:hover {
  color: #ffc107;
}

/* Main content */
main {
  flex: 1;
  background-color: var(--bg-color);
  transition: background-color 0.3s;
}

/* Industries section */
.industries-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: #ffc107;
  z-index: 2;
  position: relative;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.industry {
  background-color: rgba(0, 51, 128, 0.85);
  /* transparency for background blending */
  border-radius: 12px;
  padding: 25px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  color: #fff;
}

/* Hover effect */
.industry:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff6a00;
}

/* Animation: fade in and slide up */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-item {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: fadeSlideUp;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

/* Footer */
footer.footer {
  background-color: #001a33;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    margin-top: 10px;
  }

  nav a {
    margin: 8px 15px 8px 0;
  }

  .industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

:root {

  --bg-color: #3f0ce8;
  --text-color: #000;
  --primary-color: #1a73e8;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
}

body.dark {
  --bg-color: #131212;
  --text-color: #f5f5f5;
}

.industries-section {
  background-image: url("../Images/my.webp");
  /* अपनी image का सही path लगाएं */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 150px 30px;
  position: relative;
  z-index: 1;
}

.industries-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* dark overlay for contrast */
  z-index: -1;
}